local unitName  =  "armcom"

local unitDef  =  {
--Internal settings
    BuildPic = "ARMCOM.DDS",
    Category = "UNKILLABLE",
    ObjectName = "armcom.3do",
    name = "Commander",
    Side = "TANKS",
    UnitName = "armcom",
    script = "armcom.cob",
    
--Unit limitations and properties
    BuildTime = 1000,
    Description = "Builder",
    MaxDamage = 800,
    RadarDistance = 0,
    SightDistance = 400,
    SoundCategory = "TANK",
    Upright = 0,
    
--Energy and metal related
    BuildCostEnergy = 0,
    BuildCostMetal = 0,
	MetalMake = 17,
    
--Pathfinding and related
    Acceleration = 0.15,
    BrakeRate = 0.1,
    FootprintX = 2,
    FootprintZ = 2,
    MaxSlope = 15,
    MaxVelocity = 2.0,
    MaxWaterDepth = 20,
    MovementClass = "Default2x2",
    TurnRate = 900,
    
--Abilities
	Commander = 1,
    Builder = 1,
	builddistance = 128,
    CanAttack = 0,
    CanGuard = 1,
    CanMove = 1,
    CanPatrol = 1,
    CanStop = 1,
	CanReclaim = 0,
	canRestore = 0,
    LeaveTracks = 0,
    Reclaimable = 0,
	cancapture = 0,
	canResurrect = 0,
	capturespeed = 900,
	cloakcost = 0,
	cloakcostmoving = 0,
	workertime = 300,
	buildoptions = {
		[1] = "armack",
		[2] = "armpw",
		[3] = "armstump",
		[4] = "armmart",
	},
	canSelfDestruct  = 0,	

--Custom parameters
	customparams = {
		isobjective = "true",
		indestructible = "true",
	},
	
--Sounds
	sounds = {
		build = "nanlath1",
		canceldestruct = "cancel2",
		capture = "capture1",
		cloak = "kloak1",
		repair = "repair1",
		uncloak = "kloak1un",
		underattack = "warning2",
		unitcomplete = "kcarmmov",
		working = "reclaim1",
		cant = {
			[1] = "cantdo4",
		},
		count = {
			[1] = "count6",
			[2] = "count5",
			[3] = "count4",
			[4] = "count3",
			[5] = "count2",
			[6] = "count1",
		},
		ok = {
			[1] = "kcarmmov",
		},
		select = {
			[1] = "kcarmsel",
		},
	},    
}

return lowerkeys({ [unitName]  =  unitDef })